import request from '@/utils/request'

// 查询报警数据列表
export function listAlarmData(query) {
    return request({
        url: '/equipment/alarmData/list',
        method: 'get',
        params: query
    })
}

// 查询报警数据详细
export function getAlarmData(alarmDataId) {
    return request({
        url: '/equipment/alarmData/' + alarmDataId,
        method: 'get'
    })
}

// 删除报警数据
export function delAlarmData(alarmDataId) {
    return request({
        url: '/equipment/alarmData/' + alarmDataId,
        method: 'delete'
    })
}


// 查询报警类型列表
export function listAlarmType(query) {
    return request({
        url: '/equipment/alarmType/list',
        method: 'get',
        params: query
    })
}

// 首页报警表格
export function listWithPage(query) {
    return request({
        url: '/equipment/alarmData/listWithPage',
        method: 'get',
        params: query
    })
}